﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter11.Code01.Code08
{
    public class Demo
    {
        public static void Begin()
        {
            Cloner mySource = new Cloner(5);
            Cloner myTarget = (Cloner)mySource.GetCopy();
            Console.WriteLine("myTarget.Mycontent.Val = {0}", myTarget.MyContent.Val);
            mySource.MyContent.Val = 2;
            Console.WriteLine("myTarget.MyContent.Val = {0}", myTarget.MyContent.Val);
            Console.ReadLine();
        }
    }
}
